package com.archetypus.projectschedule.common.exceptions;

public class ProjectSchedulerException extends Exception {
	
	private static final String GENERIC_ERROR = 
		"An error ocurred when performing the requested operation";
	
	private static final long serialVersionUID = -2203451322869201200L;
	
	private String userMessage;
	
	public ProjectSchedulerException(Exception e){
		super(e);
		this.userMessage = GENERIC_ERROR;
	}
	
	public ProjectSchedulerException(String userMessage, Exception e){
		super(e);
		this.userMessage = userMessage;
	}
	
	public ProjectSchedulerException(String userMessage){
		super();
		this.userMessage = userMessage;
	}

	public String getUserMessage() {
		return userMessage;
	}

	public void setUserMessage(String userMessage) {
		this.userMessage = userMessage;
	}
}
